import allure
import pytest


@pytest.fixture(scope='function')
def add_yue():
    data={
        'platformCode': '112439112430',
        'platformName': '龙皇异次元'
    }
    yield data
    allure.attach.file(
        'rizhi.log',
        name='rizhi.log',
        attachment_type=allure.attachment_type.TEXT
    )

    # yield data
    # allure.attach.file(
    #     'rizhi.log',
    #     name='rizhi.log',
    #     attachment_type=allure.attachment_type.TEXT
    # )


